﻿using System;
using System.Collections.Generic;
using System.Text;

namespace CommonSLT
{
	public delegate void OnProgressCompletedEventHandler(object sender, EventArgs e);

	//==========================================================================
	public class SelectedEventArgs : EventArgs
	{
		public object[] selectedObjects;
		public SelectedEventArgs(object[] selectedObjects)
		{
			this.selectedObjects = selectedObjects;
		}
	}
	public delegate void SelectedEventHandler(object sender, SelectedEventArgs e);

	//==========================================================================
	public class MyDialogEventArgs : EventArgs
	{
		public MyDialogResult myDialogResult;

		public MyDialogEventArgs(MyDialogResult myDialogResult)
		{
			this.myDialogResult = myDialogResult;
		}
	}
	public delegate void MyDialogEventHandler(object sender, MyDialogEventArgs e);

	//==========================================================================
	public class MyNavigatorEventArgs : EventArgs
	{
		public NavAction navAction;
		public int currIndex = 0;

		public MyNavigatorEventArgs(NavAction navAction, int currIndex)
		{
			this.navAction = navAction;
			this.currIndex = currIndex;
		}
	}
	public delegate void MyNavigatorEventHandler(object sender, MyNavigatorEventArgs e);

	//==========================================================================
	public class OnSaveCompletedEventArgs : EventArgs
	{
		public FormStatus formStatus;
		public object objectValue;

		public OnSaveCompletedEventArgs(FormStatus formStatus, object objectValue)
		{
			this.formStatus = formStatus;
			this.objectValue = objectValue;
		}
	}
	public delegate void OnSaveCompletedEventHandler(object sender, OnSaveCompletedEventArgs e);
}
